package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.EnrollInfo;
import com.example.pojo.TeacherInfo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface TeacherInfoService {
    // 获取全部的学生基本信息
    List<TeacherInfo> teacherInfoList();
    // 分页获取全部学生基本信息
    IPage<TeacherInfo> teacherInfoListPage(int currentPage, int limit);

    IPage<TeacherInfo> getTeacherByName(int currentPage,int limit,String teacherName);
    // 根据教师姓名查询教师信息
    TeacherInfo getTeacherByName(String teacherName);

    int addTeacher(TeacherInfo teacherInfo);

    int updateTeacher(TeacherInfo teacherInfo);

    int batchDeleteTeacherInfo(List<Long> ids);

    int deleteTeacherInfo(Long eid);
}
